<?php
namespace Lettral\UserBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
 
class UserPersonnalInfoForm extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('civilite', 'choice', array('choices' => array('M' => 'M.', 'Mme' => 'Mme.', 'Mlle' => 'Mlle.'), 'label' => 'Civilité :'))
            ->add('nom', 'text', array('label' => 'Nom :'))
            ->add('prenom', 'text', array('label' => 'Prénom :'))
            ->add('adresse', 'text', array('label' => 'Adresse :', 'max_length' => 150))
            ->add('comp', 'text', array('label' => 'Complément d\'adresse :', 'required' => false, 'max_length' => 150))
            ->add('cp', 'text', array('label' => 'Code postal :', 'max_length' => 6))
            ->add('ville', 'text', array('label' => 'Ville :'))
            ->add('fixe', 'text', array('label' => 'Téléphone fixe :', 'max_length' => 14, 'required' => false))
            ->add('port', 'text', array('label' => 'Mobile :', 'max_length' => 14, 'required' => false))
            ->add('displayEmail', 'email', array('label' => 'Email :', 'required' => false));
    }   
    
    public function getName()
    {
    	return 'lettral_user_personnalProfile';
    }
}
